tblGUID = {}

--[[
	www.fh-wow.com/firehack/API.lua

	0 TYPE_OBJECT
	1 TYPE_ITEM
	2 TYPE_CONTAINER
	3 TYPE_UNIT
	4 TYPE_PLAYER
	5 TYPE_GAMEOBJECT
	6 TYPE_DYNAMICOBJECT
	7 TYPE_CORPSE
]]

function ObjectListToTable()
	local tblCount = # tblGUID
	local ObjectListCount = GetTotalObjects()
	if tblCount ~= ObjectListCount then
		-- Grab the entire object list and put it into a table
		tblGUID = {}
		for i = 1, GetTotalObjects() do
			local GUID = IGetObjectListEntry(i)
			tinsert(tblGUID, GUID)
		end		
	end
end